#include "cppTutorReferences.h"

#include <iostream>

using namespace std;

CcppTutorReferences :: CcppTutorReferences () : m_nrValue (0)
{
}

CcppTutorReferences :: ~CcppTutorReferences()
{
}

void CcppTutorReferences :: m_Reference()
{
	cout << m_nrValue << endl;
}

int& CcppTutorReferences :: m_SetValue (int& nrValue)
{
	m_nrValue = nrValue;
	return nrValue;
}

void CcppTutorReferences :: m_UseValue (const int& nrValue)
{
	m_nrValue = nrValue;
	m_nrValue ++;
}

void CcppTutorReferences :: m_RefToPointerIncrementValue (int*& nrpValue)
{
	nrpValue++;
	m_nrValue = *nrpValue;
}
